package spi;

import com.alibaba.dubbo.common.URL;
import com.alibaba.dubbo.rpc.Invocation;
import com.alibaba.dubbo.rpc.Invoker;
import com.alibaba.dubbo.rpc.Result;
import com.alibaba.dubbo.rpc.RpcException;

/**
 * @author fengbo
 * @version 1.0.0
 * @date 2019/1/12 23:10
 * @since JDK 1.8
 */
public class MyInvoker implements Invoker {
    @Override
    public Class getInterface() {
        return null;
    }
    @Override
    public Result invoke(Invocation invocation) throws RpcException {
        return null;
    }
    @Override
    public URL getUrl() {
        return URL.valueOf("test").addParameter("test", "bumblebee");
    }
    @Override
    public boolean isAvailable() {
        return true;
    }
    @Override
    public void destroy() {}
}
